﻿
namespace DataAccess
{
    /// <summary>
    /// 用于传递简单的数据库查询参数，系统根据C#数据类型自动推断数据库类型
    /// </summary>
    public class Parameter
    {
        /// <summary>
        /// 查询参数名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 查询参数的值
        /// </summary>
        public object Value { get; set; }

        /// <summary>
        /// 初始化简单查询参数结构
        /// </summary>
        /// <param name="name"></param>
        /// <param name="value"></param>
        public Parameter(string name, object value)
        {
            this.Name = name;
            this.Value = value;
        }
    }
}
